﻿using GalaSoft.MvvmLight;

namespace MoreEPG.ViewModel
{
    public class DataSourceViewModel : ViewModelBase
    {
        /// <summary>
        /// Initializes a new instance of the DataSourceViewModel class.
        /// </summary>
        public DataSourceViewModel()
        {
            
        }


        #region Property

        public const string CFPropertyName = "CF";
        private bool _CF = false;

        public bool CF
        {
            get
            {
                return _CF;
            }

            set
            {
                if (_CF == value)
                {
                    return;
                }

                var oldValue = _CF;
                _CF = value;

                

                // Update bindings, no broadcast
                RaisePropertyChanged(CFPropertyName);
                
            }
        }

        
        public const string XMLTVPropertyName = "XMLTV";
        private bool _XMLTV = false;
       
        public bool XMLTV
        {
            get
            {
                return _XMLTV;
            }

            set
            {
                if (_XMLTV == value)
                {
                    return;
                }

                var oldValue = _XMLTV;
                _XMLTV = value;

                // Update bindings, no broadcast
                RaisePropertyChanged(XMLTVPropertyName);
            }
        }

        #endregion
    }
}